package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 拼团参与人员清单
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MagicGroupJoinlist extends Model<MagicGroupJoinlist> {

    private static final long serialVersionUID=1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 运行团ID
     */
    private String runId;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 用户头像
     */
    private String userAvatar;

    /**
     * 是否团长
     */
    private Integer isLeader;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 拼团ID
     */
    private String groupId;

    /**
     * 用户名称
     */
    private String userName;

    /**
     * 核销状态0-否1-是
     */
    private Integer isClose;


    public static final String ID = "id";

    public static final String RUN_ID = "run_id";

    public static final String USER_ID = "user_id";

    public static final String USER_AVATAR = "user_avatar";

    public static final String IS_LEADER = "is_leader";

    public static final String CREATE_TIME = "create_time";

    public static final String GROUP_ID = "group_id";

    public static final String USER_NAME = "user_name";

    public static final String IS_CLOSE = "is_close";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
